﻿#pragma once
#include "StringEditEntry.h"

class SizeEditEntry : public StringEditEntry {
    Q_OBJECT
    struct SizeEditEntryPrivate;
    QScopedPointer<SizeEditEntryPrivate> p;
public:
    virtual ~SizeEditEntry();
    explicit SizeEditEntry(QWidget *parent = nullptr);
    void setValue(const QSize &size);
    QSize value() const;
signals:
    void valueChanged(const QSize &size);
private:
    void onChildEntryValueChanged();
private:
    void initUi();
    void retranslateUi();
};

